#include<iostream>
#include<vector>
using namespace std;
class Solution {
public:
    int sumSubarrayMins(vector<int>& arr) {
        int sum = 0,left=0,right=0;
        vector<int>arr0;
        int n = arr.size();

        while(right<n)
        {
            int le = left;
            while ()
            {
                if (arr[left] < arr[right])
                    sum += arr[left];
                else
                    sum += arr[right];
            }
            right++;
        }
        


    }
};